<?php
use yii\helpers\Url;
?>

<a href="<?=Url::to(['advertisement/add'])?>">添加广告</a>
<div class="advertisement-index">
    <?php
    foreach ($advertisementList as $item) {
        echo $item['corporateName']." ".$item['AdvertisingImages']."<a href=".Url::to(['advertisement/update', 'id' => $item['cateId']])."> "."修改</a>
           <a href=".Url::to(['advertisement/del', 'id' => $item['cateId']])."> 删除</a><br />";
    }
    ?>


</div>
